package com.example.domain;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author 袁小弘
 * @describe 培训中心学生管理————就业登记类
 * @date 2019-12-17 9:34
 */
@Entity
@Table(name = "employment")
public class Employment implements Serializable {

    private static final long serialVersionUID = 6264959276436952065L;

    @Id
    @GeneratedValue
    @Column(name = "employment_Id")
    private Integer employmentId;//就业登记ID

    @Column(name = "user_Id")
    private Integer userId;//学生ID

    @Column(name = "status", length = 32)
    private String status;//状态

    @Column(name = "enterPrise", length = 32)
    private String enterPrise;//企业

    @Column(name = "entryTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp entryTime;//入职时间

    @Column(name = "dimissionTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp dimissionTime;//离职时间

    @Column(name = "dimissionCause", length = 255)
    private String dimissionCause;//离职原因

    @Column(name = "comment", length = 255)
    private String comment;//备注说明

    @Column(name = "recordTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp recordTime;//创建记录时间

    @Column(name = "updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp updateTime;//更新记录时间


    public Employment() {
        //无参构造
    }

    public Integer getEmploymentId() {
        return employmentId;
    }

    public void setEmploymentId(Integer employmentId) {
        this.employmentId = employmentId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getEnterPrise() {
        return enterPrise;
    }

    public void setEnterPrise(String enterPrise) {
        this.enterPrise = enterPrise;
    }

    public Timestamp getEntryTime() {
        return entryTime;
    }

    public void setEntryTime(Timestamp entryTime) {
        this.entryTime = entryTime;
    }

    public Timestamp getDimissionTime() {
        return dimissionTime;
    }

    public void setDimissionTime(Timestamp dimissionTime) {
        this.dimissionTime = dimissionTime;
    }

    public String getDimissionCause() {
        return dimissionCause;
    }

    public void setDimissionCause(String dimissionCause) {
        this.dimissionCause = dimissionCause;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Timestamp getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Timestamp recordTime) {
        this.recordTime = recordTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Employment [employmentId=" + employmentId + ", userId=" + userId + ", status=" + status
                + ", enterPrise=" + enterPrise + ", entryTime=" + entryTime + ", dimissionTime=" + dimissionTime
                + ", dimissionCause=" + dimissionCause + ", comment=" + comment + ", recordTime=" + recordTime
                + ", updateTime=" + updateTime + "]";
    }


}
